package com.itcast.Extands;

public  class Rabbit extends Animal {
    @Override
    public void eat() {
        System.out.println("年龄为"+getAge()+"的"+getNumOflege()+"条腿的兔子在吃狗尾草");
    }

    public Rabbit() {
    }

    public Rabbit(int age, int numOflege) {
        super(age, numOflege);
    }
}
